<?php

/**
 * Output class
 * 
 * We can set different types of outputs. If using any JavaScript framework,
 * it is easier to send back JSON strings. 
 *  
 */

namespace Kesillo\Core;

class Output
{
    public function __construct()
    {
        //empty for now. declaring it to keep uniformity
    }
    
    /**
     * Sends a JSON formatted string to the browser.
     * go 
     * @param array $data 
     */
    public function KJson($data = Array())
    {
        echo json_encode($data);
    }
    
    /**
     * Echos whatever data is sent to the method
     * 
     * @param  array, string $data
     */
    public function KEcho($data)
    {
        echo $data;
    }
}